<template>
  <div>
    <button @click="add(1)">这是第{{msg}}次单机</button>
  </div>
</template>

<script>
export default {
  name: 'App2',
  data(){
    return{
      msg:0
    }
  },
  methods:{
    add(one){
      this.msg+=one
    }
  }
}
</script>

<style>

</style>
